<template>
  <div>
    <dentail-banner></dentail-banner>
  </div>
</template>

<script>
import axios from 'axios'
import DentailBanner from './components/Banner'
export default {
  name: 'Dentail',
  data () {
    return {
    }
  },
  components: {
    DentailBanner
  },
  methods: {
    getHomeInfo () {
      axios.get('./api/index.json')
        .then(this.getHomeInfoSucc)
    },
    getHomeInfoSucc (res) {
      res = res.data
      if (res.ret && res.data) {
        // eslint-disable-next-line no-unused-vars
        const data = res.data
      }
    }
  },
  mounted () {
    console.log('mounted')
  },
  // 当页面重新显示的时候执行
  activated () {
    console.log('activated')
  },
  // 当页面消失的时候执行
  deactivated () {
    console.log('deactivated')
  }
}
</script>

<style>

</style>
